<style type="text/css">
    .attr_value{
        display: inline-block;
        min-width: 80px;
        padding: 10px 15px;
        position: relative;
    }
</style>
<br>
<br>
<br>
<h1 class="light">
    <?= $attr_group['name'] ?>
</h1>
<hr>
<div class="row">
    <div class="col-md-12">
        <div class="row ">
            
            <div class="col-md-10">
                <div class="form-row">
                    <table class="table table-bordered">
                        <colgroup>
                            <col width="10%">
                            <col width="">
                        </colgroup>
                        <thead>
                            <tr>
                                <th>属性名</th>
                                <th>属性值</th>
                            </tr>
                        </thead>
                        <tbody>
                            <? if($attr_group['children']): ?>
                                <? foreach($attr_group['children'] as $a): ?>
                                    <tr>
                                        <td><?= $a['name'] ?></td>
                                        <td>
                                            <? if($a['children']): ?>
                                            <? foreach($a['children'] as $av): ?>
                                                <span class="attr_value"><?= $av['name'] ?></span>
                                            <? endforeach ?>
                                            <? endif ?>
                                        </td>
                                    </tr>
                                <? endforeach ?>
                            <? endif ?>
                        </tbody>
                    </table>
                </div>
                <hr>
                <div class="form-row">
                    <label class="form-label">状态</label>
                    <h5><?= $attr_group_status[$attr_group['status']] ?></h5>
                </div>
                <hr>
                <div class="form-row">
                    <label class="form-label">创建时间</label>
                    <h5><?= time_format($attr_group['create_time']) ?></h5>
                </div>
                <hr>
                <div class="form-row">
                    <label class="form-label">创建人</label>
                    <h5><?= $attr_group['create_admin_info']['nickname'] ?></h5>
                </div>
                <hr>
                <div class="form-row">
                    <label class="form-label">更新时间</label>
                    <h5><?= time_format($attr_group['update_time']) ?></h5>
                </div>
                <hr>
                <div class="form-row">
                    <label class="form-label">更新人</label>
                    <h5><?= $attr_group['update_admin_info']['nickname'] ?></h5>
                </div>
            </div>

            <div class="col-md-5">
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
</script>
<br>
<br>
<br>